package com.xuecheng.api.teaching;

import com.xuecheng.api.media.model.qo.QueryMediaModel;
import com.xuecheng.api.teaching.model.dto.WorkDTO;
import com.xuecheng.api.teaching.model.qo.QueryWorkModel;
import com.xuecheng.api.teaching.model.vo.WorkVo;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

/**
 * Created on 2021/04/20/16:37 周二
 *
 * @author Lantin
 */

@Api("作业管理Api接口-教师")
public interface WorkApi {


    @ApiOperation("根据作业id查询作业")
    @ApiImplicitParam(name = "workId", required = true, value = "作业id", dataType = "Long", paramType = "path")
    WorkDTO getWorkById(Long workId);

    @ApiOperation(value = "教师添加或修改作业")
    @ApiImplicitParam(name = "workVo", value = "作业传入参数封装", required = true, dataType = "WorkVo", paramType = "body")
    WorkDTO createOrModifyWork(WorkVo workVo);

    @ApiOperation("分页条件查询课程作业信息")
    PageVO<WorkDTO> queryWorkList(PageRequestParams params, QueryWorkModel model);

    @ApiOperation("删除课程作业")
    void removeWork(Long workId);

}
